Support ANSI colors in msys terminals. See #2807

Enable ANSI colors if TERM is set to cygwin and terminfo is not available (msys terminal on Windows). See #2807