highgui: minor improvements.