Change glx-input to copy the texture

This (hopefully) makes it so that it just copies the glx pixel buffer
texture for rendering rather than doing the whole frame buffer stuff.
The new graphics system functions allows it to be used as a libobs
texture object (again, hopefully)
Some smaller fixes