libevent: change makefile to add compilation flag of libevent, and, add more structures of libevent in the source code