Fix build for osx system

Just a litle fix :)
Merge pull request #52 from men232/patch-1

Fix build for osx system