fix ouptut coloring on OSX, update #1828