Add policy CMP0021 to preserve existing behavior in projects expecting it from earlier CMake versions.