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

On some systems (e.g. Windows) LLVM_LDFLAGS can be empty.
Merge pull request #803 from redstar/cmake_check

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