Fix building of plugins