Fixes #594 MacOSX memory mapping

@cjdelisle @wfleurant wait, this breaks it for Linux, see 23d047964f1e2c47402c922757bc938088211cb2!
Looks like we need a platform #ifdef here