Enable colors also for windows if available

On windows are also ANSI colors available under some circumstances.
This is the case if ansicon or cygwin is installed.

With this patch tocgen checks if ansicon or cygwin is installed. If so, then colors will be enabled.