fixed compile error on osx
Merge pull request #4 from endyul/osx-patch

fixed compile error on osx