As detailed in T228, the interfact of setRndmEnginePtr has changed in Pythia8
version 310, which results in build failures for EvtGen.
This revision works around this change by modifying the internal storage of the
EvtPythiaRandom pointer from a std::unique_ptr to a std::shared_ptr and then
having a compile-time switch on the Pythia8 version to either pass directly the
shared_ptr (in versions 310 and later) or the underlying raw pointer (in
earlier versions).
Closes T228.