CMake: Improve STL checks, improve C++17/20 support. See https://github.com/wxWidgets/wxWidgets/pull/1782 Closes #18718.