Bug fix for memory file mapping and windows 7 support