Take OpenGL version by value

Closes https://github.com/PistonDevelopers/sdl2_game_window/issues/38