Make more syscalls interruptible.

All the tests pass, so the patch must be correct :).
Merge pull request #115 from cgjones/more-interruptible-syscalls

Make more syscalls interruptible.