Make the unittests work *slightly* better with libevent. (Still won't work completely because events.h doesn't export a way to run a single event loop iteration.