Fixed conditional compilation so that it trigs for all APPLE based OSes instead of just OSX.