Fix for MacOSX
Merge pull request #4 from oflebbe/master

Fix for MacOSX