Add MacOS support.
Merge pull request #1 from codwazny/macsupport

Add MacOS support.