Fix MacOSX build