enhance platform handling on windows

enforce previous sourcing of MSVS vcvarsall.bat, set target platform based
on chosen vsvars*.bat