Fix Windows static build.

We must first build the plugins, so we can then link to them.