Fix various clang warnings.