Use correct platform detection macro: __MACOSX__ -> __APPLE__