Can use just use the `pkg-config` stuff like `$(CUNIT_LIBS)`?  The `$(EVENT_LIBS)` should already link in pthreads.