Fixed building on MacOSX