This function creates some internal structures that are required for plugin processing
Plugins should not define their own constructors, because they are instantiated
to extract plugin info. Instead, include a sink for a "init" hook
which is executed immediately after the plugin is loaded during normal execution.