Reuse code for error reporting from the minijazz compiler
Some cleanups
Some cleanups
Some cleanups