Switched PluginManager to use shared pointers