Don't handle deferral if TTY has exited (fixes crash).
Paranoia in Tty::resize().
Cleanup.
Make it build on FreeBSD.