env.cxx: Add missing _WIN32 guard around dup_env_var().