Use _putenv_s on Windows/MinGW