Play nice with MacOS

Solves #19
Merge pull request #20 from martnu/patch-1

Play nice with MacOS