cleanup OSX compilation