Patch gtest for VS2012 from CMake and change min and max functions to be correct.