MacOS X Support

Issue #39
Issue #42