Fix compile error with LLVM 3.6.

The llvm::Linker class now uses diagnostic messages.