At least 40 dead in Iraq attacks