Bind signalHandler to SIGHUP only if it exists.

SIGHUP is an Unix-specifix signal. Fortunately, signal names are required to be macros, even in C++, so we can directly #ifdef SIGHUP.