The mariadbclient.lib and dll needs to be recompiled with the proper configurations.