Restore lost exception safety function attributes.

Fixes #11.