fix some compiling bugs on MacOSX