[llvm-c] Simplify signature of LLVMGetTargetFromName

LLVMGetTargetFromName was not yet present in an LLVM release,
so this does not break compatibility.
[llvm-c] Add missing const qualifiers to LLVMCreateTargetMachine