Fix linking on tty client