#101318: Patch for various problems in AliROOT