Add OpenGL version test and error dialog.