Fix compilation with mingw-w64 cross-compiler in -std=c++11 mode (#5459)

git-svn-id: https://svn.osgeo.org/gdal/trunk@27359 f0d54148-0727-0410-94bb-9a71ac55c965
Merge branch 'trunk' into trunk_mingw