Added support for MariaDB (Debian Jessie / Ubuntu Trusty) + small fixes