Fix #534 - segfault when loading some ELF, MACH0 and PEs