Fix warnings reported by clang