Fix signal handling

* initSignals() wasn't being called
* signal.h wasn't being included with WIN32 defined