Improved highgui config
Enabled CMake version check, fixes policy issue.