fix compile error with MariaDB 10.0.2. refs #1729