OSX compilation failures