Update llvm-config-3.1 to llvm-config-3.5
Also link against the system libraries which LLVM needs
Port to LLVM 3.5