add pthread dependency for gtest