Set up build environment in the msbuild script.