Fix loading ELF object and shared libs (needs more review/test)