Add some libevent 1 compability