added preprocessor directive for OSX-specific header