Fix compilation with C++20
- fix clash between
ranges
andstd::ranges
caused byusing namespace std
in HepMC3 - force C++17 for some sources that use a header of Pythia8 that does not compile with C++20
ranges
and std::ranges
caused by using namespace std
in HepMC3