[llvm-c] Improve TargetMachine bindings

Original patch by Chris Wailes