add libevent and static initialization problem