Fixed the tests to properly include the additional libevent_pthreads dependency.