mescc: Nyacc updates, factor-out elf-util.