Merge pull request #279 from Alexpux/mingw-w64-builds

Properly clear environment variables.