I have downloaded gtest 1.7.0 sources from here:
https://code.google.com/p/googletest/downloads/list
and build the gtest .a files (lib files) on ubuntu 13.10
Use -pthread instead of -lpthread (for linking with pthread-library), while you using gtest in your executable.
-pthread
-lpthread
OR
Move the -lpthread after libgtest.a (sequence matters).
libgtest.a