Fix various warnings when building with LLVM 3.5.