Wrong usage of std::streamoff replaced by std::streamsize