Add CMake Policy settings.

I set version 2.6 as the baseline since cmake_minimum_required does so. CMP0037 denies target names reserved by generators, e.g. test.