[GHC] #10275: LLVM/cross-compilation fixes to be backported