Fix pyglet and game loading.