untested version of functions is_elf and get_arch_elf.
plus modifications of pe functions to be linked to elf ones (just logical
meaning)
TODO: test the damn functions