Few renaming and update for glsampler.
Refactoring to support cmake and to prepare OpenGL ES support.