Apple OSX does not set the __unix__ macro. I added __APPLE__ to support OSX.