Fix various Clang compiler warnings.