Fix nvtt build to support cmake-4, while at it also fix other related outstanding cmake issues in nvtt. Fixes: #7538 Fixes: #7764 Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>