add compiler compatibility to geant 4.10++