Added support for OSX
Merge pull request #1 from apcode/master

Add support for OSX.