CMakeLists.txt: Check if LLVM_LDFLAGS is empty before trying to replace ...

...something.

On some systems (e.g. Windows) LLVM_LDFLAGS can be empty.