fix Issue 7822 - lseek cast(int)offset should be lseek cast(off_t)offset