OSX compatibility
Merge pull request #2 from cielavenir/master

OSX compatibility