Fix warnings when compiling for MySQL.