Use glXCreateContextAttribs for creating context

This gives more control about the context to be created. Especially
important is the ability to require the version number.
Cannot use GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB here, because there
seems to be deprecated functionality in use.

> https://www.opengl.org/registry/specs/ARB/glx_create_context.txt