mariadb: fixed some compiling errors