Free/Net/OpenBSD have another names for libevent2 headers.

Add #ifdef / #else / #endif to include correct headers.