Window creation and opengl context creation