experimenting with using external X windows as textures

Sort of working with xterms, but code is a mess and leaks resources
all over the place.
add DOTIMES,INCF,etc to glsl compiler