osx support
Merge pull request #13 from pvanek/master

Added initial Mac OS X support.