[BUGFIX] could not handle large files (> 4GB) in 32bits environments