modify cv::movewindow to fit legacy opencv versions