tty_insert_flip_char changes with version 3.9.11.

Make this conditional code, based on version number, as we did with acsint.c.
Pass tty before 3.9, and port after 3.9.