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

Update for MacOSX