Fix warnings reported by llvm/clang