MacOSX build fixed