Fixed several clang warnings