I do it a different way: 1: open a mingw shell 2: make a dir and unpack the mingw source here, 3: run: make mingw471
When I installed mingw a few years ago, it left an option to run a mingw shell - which is sort of like a simulated *nix environment.
best regards,
- dink