add -lpthread for gtest