__unix__ not defined on Mac - add __APPLE__
Merge pull request #53 from asmaloney/fix_mac_compile

__unix__ not defined on Mac - add __APPLE__