enable ci build on osx
fix some bugs in build.py
Merge pull request #373 from haiwen/enable_ci_build

enable ci build on osx