Fixes #429: check for __unix__ and __POSIX__