Merge branch '2022-10-10-LLVM-related-improvements'

- A few patches to make building with LLVM/LLD easier