Convert read() and write() into vsyscall hooks.

#709