Fix tty build broken in last configure.ac changes