Fix gtest build (add pthread)