Improve dynamic loader functions

OpenJDK requires `dladdr` and `dl_iterate_phdr` to get the path to the installed JRE. These functions need to be overridden to convert the paths. Likewise, it uses `dlopen` to search for libraries, which shouldn't be converted.