Updated to work harder to load shared objects (that are not ELF)