HPCC-12662 Fix compile issue with older gcc versions

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Merge pull request #6738 from jakesmith/hpcc-12662c

HPCC-12662 Fix compile issue with older gcc versions

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Merge remote-tracking branch 'origin/candidate-5.2.0'

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>