Extensive bugfixes in ELF loader for ET_DYN