glfw::create_window: added basic error handling