OSX build fix