Fixed some errors preventing compilation with ROOT.