Allow building on Mac OS X
Merge pull request #1 from dirker/osx-support

Allow building on Mac OS X