[runtime] Switch the order of LLVM_LIBS and LLVM_LDFLAGS on the linker command line. Hopefully fixes #17931.