Xrootd 4.0.0 porting issues

Here are a few commits to make things compile on ix86, arm and ppc64.