Fixed plugin linking bug

PLUGIN_DECLARE_CLASS used instead of PLUGIN_EXPORT_CLASS because the class does not exist. Export class is used to make plugins for existing classes