v.22.8Build/Testing/Packaging Improvement

Support for clang-16 Build Implemented

Support build with clang-16 (trunk). This closes #39949. #40181 (Alexey Milovidov).