Fix opengl support