gtest: add patches to make the gtest application run out of the box