Fix some things in `standalone` in order to unblock https://github.com/llvm/llvm-project/pull/155741.