There is not unsetenv() on MinGW

BUG: 326986
REVIEW: 113529
Merge branch 'bug-326986'