I was told to add
set MINGW64=c:\mingw\ming64-w64
before the paths

It works for me in windows 7