Terrorism changes mind of death penalty foes