Accommodating pure shared library LLVM installations.

The existing code always needs libLLVMCore to be around. This is sometimes
not the case, i.e., when only the monolithic shared library is installed:
libLLVM-$version.so.

I think this code will allow that case now, whereas I couldn't build it before
with Fedora's llvm package.