Fix compilation of tests on Windows.