Attempt to fix linking tests on Windows.