Add line numbers to warning/error messages (and pretty up some existing ones).