made this compile for MariaDB 10