index: fix filemapping on Windows
Merge pull request #1 from pmezard/windows-filemapping

index: fix filemapping on Windows