Multisource xrootd v3

taken from #856