Refactor common code (mostly into set_build_target.bat). Ensure that all VS2005 x64 output is clearly generated into x64 directories, and likewise for Win32 output