add -pthread option into CMakeLists.txt

build gtest failed on debian without this