On Qt 5, use QThread, QOpenGLContext, and QOffscreenSurface.

Improves Windows compatibility.
Change param name "length" to "out" in mlt_playlist_insert_blank.