Fix build failure with gcc < 4.4 (bug #10762)

See http://hub.qgis.org/issues/10762 for details, this is needed to build with gcc <= 4.4