Add some logging helpers.

I'm tired of keeping unistd_32.h and signum.h pinned to my emacs sessions ;).