libevent: update to use static plugins and work with new libevent2