generalized elf module loading