ref #15 impl glx context and refine format, version, and context initialization