Check for pthread_yields existence before trying to use it.
Keep -lgtest in LIBS when testing for gmock and gtest_main. This may help
under some circumstances.
Check for the -std=c++11/c++0x flag correctly and make it version 0.9.1.
Remove all QT dependencies in favor of C++11 mutexes.