initializing glfw and nanovg.