Support MariaDB 10.x build with configure

[groonga-dev,01727]

Reported by WING. Thanks!!!