Add missing lib linking for plugins.