Fix libevent autoconf bug #2698