Readd windows-specific code in FileMap