fix init order + use GLFW window as default except windows