fixed bug: gtest must be built with lpthread, even if the main app doesn't need it