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

Update for MacOSX