fix mariadb compilation