Fix for building mono in VS, and implement reading/writing USER/MACHINE level environ...