fix color output on windows, close #6