Fix problem on windows with file > 2Gb