fix build process
fix osx build