window: refactor GLFW doNew into a build method; Helps #34