FIXME: glfwCreateWindow causes the race condition