Fixed OSX build