mescc: Refactor compiler.