Fixup some stupid issues, remove some glfw functionality that we probably won't use.