Add gl Batch and make thread context work again