Fixing many clang warnings.