Hard-code some try_compile results for third-party libraries
Our bundled third-party libraries perform many try_compile
checks for
compatibility with their upstream build systems. For many of the checks
we already know the result for compilers we support for building CMake
itself, especially on Windows. Hard-code known results to avoid running
the checks.