Fixes #429: check for __unix__ and __POSIX__
Merge pull request #430 from racker/fixes/posix_signal_handling

Fixes #429: check for __unix__ and __POSIX__