Make it build on OS X
Merge pull request #3 from pwaleczek/master

Added support for building on OS X