Wrap OS X specific calls in preprocessor if’s.