Fixed a bug on file mapping with MinGW32