Fix gtest example for Ubuntu (link pthread)