xsys: moved tty.h stuff into xsys, removed tty.h