mysql-connector-c++ mariadb build fix.

Closes #34578.

(If it works).