setenv is not avaiable on Win32

This quick fix will add setenv function using the avaiable putenv call.
This should be in a win32 shared section of the code, but I will take
care of that as I clean more of the win32 build process up.