Fix to build on Mac OSX
Merge pull request #3 from ccustine/features/osx

Thanks.