fix scons build failed on ubuntu 13.10

move '-lpthread' to after 'gtest_main.a',
otherwise the building will failed