use ftello instead of ftell to query 64 bit offsets, then cast down to unsigned 32 bit values. This makes it possible to support large files in the range 2 to 4 gigs without having to change the mvid file format to support full 64 bit offsets. Reading logic uses unsigned 32 bit offsets and is not affected