Windows: Fix regression with conftest whose qualified name contains uppercase
characters (introduced by #5792).