Updated CMake policies

Removed old CMP0003 and added CMP0025 and CMP0042.
Merge branch 'release'