Minimum required cmake version bumped to 2.8
Set policy only when supported by cmake version.