Fix build in MacOSX