Fixed a number of llvm warnings