Fix compile error with LLVM 3.6.

The llvm::Linker class now uses diagnostic messages.
Merge pull request #764 from redstar/llvm36

Fix compile error with LLVM 3.6.