The source project of this merge request has been removed.
The first two commits in this series fix Policy violations.
The other fix various issues I discovered while trying to build my own version of OpenCV and noticing various issues.
The only major change is the last commit in the series: it switches the backend of the highgui module from GTK to Qt. This does enable more functionality, so I think it is a good switch.
You're welcome to use the commits as they are or change them as you see fit.