Fixed an issue with OpenGL extensions.
Fixed a bug in shader creation.