Color code warning and error messages in the console window (fixes #855).