build: try improve handling of clang warnings