CXX-56 Ensure that libdeps for tests work on Windows even when not build...

...ing the DLL

Referring to the dynamic windows library name only works if we are building the DLL.
When building on windows, always use the static library name, which differs.