add wl_event_source_activate method and use pthreads in libevent2