Source/Tests: use new try_compile and use configure_log
Refactoring to use CMake 3.26 syntax within CMake re: try_compile and message(CONFIGURE_LOG).
For future reference: many of the remaining old try_compile also need the BINARY_DIR due to operations, and also some of the tests are specifically for the old try_compile.
Edited by scivision