fixed Seek and Tell for offsets larger than int