autoconf: fix up libevent autoconf test