app: various small fixes from reviewing the diff
app: fix pyglet after seeing travis error