env.cxx (get_env_var): Use _dupenv_s() and _wdupenv_s() to avoid threading
issues.