I get the first OpenGL program hanging too, but for some reason my X server is not affected. It could be because something on my system is unsetting LD_LIBRARY_PATH on X startup. And I need LD_LIBRARY_PATH set so that the ati libGL.so.1 get used (due to the soname bug).

Also - I think Textured2D has a side-effect of disabling accelerated offscreen pixmaps, which I need otherwise I get the corruption around the mouse cursor bug.