Shoring up the OGL interface

The window context creation was previously held in a task, which I think
is stupid. This fixes that.