fix macos build
Merge pull request #17 from manuzhang/fix_macos_build

fix macos build