fixed compillation for obsolete classes

Fixed compillation for Geant4 10.0.