Fix enumeration on Windows.