Added libpthread to the list of libraries needed for the tests.