added test to libevent and other missing bits to compile