configure.ac restored back checking for libevent