cleanup of windowing (glfw) boilerplate