gdal: add upstream patches to compile against MySQL 5.6.x

Fixes #24543.