Fix some warnings that are new since clang-tidy version 4, and update `.clang-tidy` to suppress the rest.