Update for MacOSX
Merge pull request #4 from dirkk0/patch-3

Update for MacOSX