diff -rupN vanilla/configure.vbs patched/configure.vbs
--- vanilla/configure.vbs	2012-09-16 23:04:57.000000000 +0200
+++ patched/configure.vbs	2012-09-16 23:04:00.000000000 +0200
@@ -1001,13 +1001,21 @@ sub CheckForVisualCPP(strOptVC, strOptVC
 
    if   (strPathVC = "") _
     And (Shell("cl.exe", True) = 0) then
-      str = Which("cl.exe")
+    str = DosSlashes(Which("cl.exe")) 'If DosSlashes isn't called, strClExe will be "amd64/cl.exe" and empty in the end
       if FileExists(PathStripFilename(strClExe) & "/build.exe") then
          ' don't know how to deal with this cl.
          Warning "Ignoring DDK cl.exe (" & str & ")."
       else
-         strPathVC = PathParent(PathStripFilename(str))
+	      if (EnvGet("Platform") = "X64")_ 
+		And InStr((Len(PathStripFilename(str)) - 6), PathStripFilename(str), "amd64") then 'and check if the path contains amd64
+
+		      strPathVC = PathParent(PathParent(PathStripFilename(str))) 'Remove "....\bin\amd64\"
+	      else
+		      strPathVC = PathParent(PathStripFilename(str))
+	      end if
+
          strPathVCCommon = PathParent(strPathVC) & "/Common7"
+
       end if
    end if
 
