bootstrap: Extend C++17 check for our cast functions
In !4064 (merged) we added a check to Source/Checks/cm_cxx17_check.cpp
to avoid
using C++17 mode on a compiler that does not support all our C++17 usage.
Add the check to our bootstrap script too.