fixes for build on osx and bsds

* changed to more portable sig_t instead of sighandler_t
* removed redundant insert declaration
* fixed makefile for osx
* suppressed warning spam on osx (apple deprecated openssl...)