Fix compiling on OS X
Merge pull request #17 from clobber/osx-buildfix

Fix compiling on OS X