Add unnamed namespace and refactor code.
Implement compiling shader using OpenGL.