Clean up compiler printing to be context-sensitive