Only do OSX foo when __APPLE__ set, sigh.