Fixes #594 MacOSX memory mapping