Convert Plugin structs to inherited C++ classes.
plugin-declare.h remains as a temporary shim until plugins are updated.