add support for Mac OSX
Merge pull request #1 from jcw/master

Support for Mac OSX