fix building error on os x(homebrew)
Merge pull request #2 from chenfengyuan/master

fix building error on os x(homebrew)