Configure libevent
Added support for MariaDB