Fix build error on MacOSX