Define sig_t for systems without it.  Closes #765