Don't use Reflex::SharedLibrary

Since Reflex will not be supported in the next release of ROOT, this pull request removes the usage of the Reflex::SharedLibrary class by moving the needed functionality from Reflex::SharedLibrary into CMSSW, and eliminating redundancy.  The code in question is only a very few lines.  This pull request has been tested.