Added the missing -levent_pthreads dependency to some of the Makefiles.