Print stack overflow messages for Linux and OS X
Fix sigaction on OS X
defs