GCC 4.8 is lacking some C++11 signatures (see “Adjust C++11 signatures to take a const_iterator.” in GCC 4.9: https://github.com/gcc-mirror/gcc/commit/3d2b2f494d78e0f4168d2c7ba5a76c05b4f4af71)
Fix that by changing the code to use the pre-GCC 4.9 signature.
Can be reverted after #13356.
Fixes #15172 (reports on Linux Mint 17.3 Rosa
and CentOS Linux release 7.5.1804 (Core)
)