glsl backend: fixed local variable typedefs, fixed function calls.