Add macro for exiting with errno after perror.

Quite common in my code.