Fix CMake policy warnings/changes introduced in 3.0.0 and higher