Correct preprocessor directives for OS X