Port to xrootd 4.x.y

This is a squash of the work done in CMSSW_7_3_DEVEL_X.
Merge pull request #6592 from ktf/port-to-xrootd4

Port to xrootd 4.x.y