Fixes to make the test run on Windows.