Fix compile error and add cptr type support.

I fixed compile error about GL_STENCIL_INDEX.
And add cptr type support to 'glVertexAttribPointer'.