add internal header for libnet
move some event base interfaces into internal header