OSX compilation