libevent must compile as static library