Fix MSVC warning on streampos to size_t conversion