LLVM 3.6 fixes, mostly due to the changes in the Metadata API.