Support pwrite64 and add a test.