window manager, engine as a singleton, glodef deleted, fixes #54