mysql-connector-c++: allow building with mariadb/percona-server

Fixes #27025