Added GLX initialization code for Linux. Many data reorganizations