colorized error output
clean up style and naming conventions from PR #295
do not show the newline at end of file as a line in compilation errors
improve compilation error colourisation