Fix linker errors on MSVC.

And probably also on MinGW.
Link to proper library on Windows.

Probably overdone when prefixing *TestLib libraries.