tests: Fix warnings on Windows.