Properly clear environment variables.
Avoid secondary building last rule.
Merge pull request #279 from Alexpux/mingw-w64-builds

Properly clear environment variables.