fix build fox OSX platform
Merge pull request #1 from jeremyletang/master

fix build for OSX platform