check if function posix_isatty exists