Fix linking of plugins.