fixes for the http ext and libevent