windows: _putenv_s is not avialable by default on Windows XP

Lookup _putenv_s and _putenv at runtime and fall back to _putenv if
_putenv_s is not avialable.