Add compatibility for old libevent.

Issue:	#109
Suggested by:	@yellowman