Use _putenv on Windows/MinGW
Merge pull request #38 from fwp/env-var

Use _putenv on Windows/MinGW