tty: fix bracketing
filesys: fix gcc warn/errors
6809: unbitrot versus changes we've made elsewhere

Still not a "real" port, but it compiles again