cmake: clear some configure checks when the deployment target changes
If the target is changed since the last configure, some checks need to be looked up again. Clear their cache entries when these checks need to be redone.
If the target is changed since the last configure, some checks need to be looked up again. Clear their cache entries when these checks need to be redone.