Fix warnings and make CI flag warnings as errors
Alternative API available since v7.0. Hence, not doing anything special for handling different Geant4 versions
Alternative API available since v7.0. Hence, not doing anything special for handling different Geant4 versions