Don't rely on the core library pulling in the UI library.

That wont be the case much longer, so make the plugins link in that case.
No need to link the probe to the UI library anymore.

There are still several places pulling in QtWidgets though.
Don't link against SVG and print support when using Qt5.
Proxy tool factory is now only used inside the probe, so move it there.