fix macos building issue
Merge pull request #12 from runk/fix_macos_build

Fix macos building issues