Linux GLX/3.1 support

My setup is only 2.1 right now, so this is totally untested