made this compile for MariaDB 10.0