Updating the CMake Version 3 policies to remove warnings