Rewrite ELF parsing from scratch w/o dependency of elf(3) and gelf(3)