r10484: try to fix the pread/pwrite declaration problems