Make gl_create_thread easier to use.