Remove the only place where PMI was used outside a component, and relocate that code to common/pmi.
Fix build issue when building with --disable-dlopen.