Possible fix for #264
Merge pull request #265 from dsyme/hosted-memmap-fix-1

Possible fix for #264