fix broken lseek on x32 (x86_64/ILP32) with offsets larger than LONG_MAX