Improved logging coloring performance on Windows.