Fix compilation of the TTY client