configure libevent leaks

breaks build with "CFLAGS=-fsanitize=address". probably be better just to use pkg-config, but...