Set some gl attributes before window creation