Add OSX support
Merge pull request #5 from clibs/osx

Add OSX support