Reorganized PE module loading to prepare for elf-dll loader.