Making sure that certain OS X only stuff is only called when compiling for the mac.