Use libevent1 on Ubuntu, otherwise libevent2 is used