use cmake policy from the version we test with

fix configure- scripts