fetch_third_party.bat now checks for presence of git.cmd/git.exe

Newer versions of git on Windows have no git.cmd. Refs #6486
Minor changes to build under MSVC 2012. Refs #6527

The _VARIADIC_MAX macro is required for gtest.