Get rid of POSIX fileno(2) in flex output

Flex generated code checks if the input
file is a terminal using isatty(2) and fileno(2).

We don't need that as we always pass either string
buffer or a disk file.