Fix OSX build