mariadb: compilation fix for 10.0.6

This fixes compilation of latest mariadb beta 10.0.6. Tested on 10.9.