This fixes #5 and should now work on Mac OS