add support for Mac OS X
fix typo
Merge pull request #1 from benwbooth/master

Mac OS X support