Fix build on Mac OS X
Merge pull request #23 from settinghead/master

Fix build on Mac OS X