Add configure checking for pread(2) and use it to save a syscall when reading files.