CMake: Use the new USES_TERMINAL option for test suite targets when available.