Does the tests requires all of the gtest source files? Now only three files gtest-all.cpp, gtest.h, gtest_main.cc are enough to build successfully.