Fix analyzing elf from a stage directory
Fix build on mips, cleanup now unused ARM macros