Fix tty client build