Handle GL_{MAJOR,MINOR}_VERSION not being available.
Merge remote-tracking branch 'haven/core'