This is a second attempt of D25360 which kept failing on ARM. This was
tested by an unfinished cross build (for an unknown reason) and the XRay
files were compiled successfully, after a (yet another) header inclusion.
I ran "ninja check-xray" only on amd64, please test that on ARM as well;
building it might still cause problems when linking XRay into user binaries.
Sorry again for the breakage, I'm in the middle of multiple ways of getting
a reliable and fast ARM environment.