fix for isatty compilation error