allow gles+gles2 linking at the same time (v3)

I took your suggestions, except realloc'ing hooks, I think we can do that later as needed.