Fix ELF loading when headers are really fucked up