Free/Net/OpenBSD have another names for libevent2 headers.
Add #ifdef / #else / #endif to include correct headers.
Merge pull request #641 from yason/master

Add #ifdef to include correct headers on BSD systems