Created a common base class utils.CompileError for all compilation errors.

Parse- and lexical errors now prints the faulting line like the semantic errors
does.