Mac OSX build fix