- Don't explicitly link with libjvm.so for libExplicitAttach. That helps to avoid adding libjvm.so as a dependency for libExplicitAttach.so.
- Dynamic lookup JNI_GetCreatedJavaVMs to avoid the direct reference to JNI_GetCreatedJavaVMs. That removes the need to explicitly link with libjvm.so.