use external libevent library.
Merge branch 'master' into issue4