use GL_ASSERTIONS instead of ASSERTIONS
add OpenGL Desktop/ES 2.0 hardware instancing extensions compatibility functions