st/glsl: move linking code to the same st file
Since they call one another this makes it easier to see what is going on without looking in multiple files.
Since they call one another this makes it easier to see what is going on without looking in multiple files.