Fix build error MacOSX