Add support for Mac OS X (fixing issue #1)
Merge pull request #2 from codyaray/mac-osx

Add support for Mac OS X (fixing issue #1) - tested and it still works on Linux, so LGTM! Thanks!