Add some gcc noreturn annotations to common functions that exit.

Clang also recognizes these annotations.