Fix eglQueryString() to support long EGL_EXTENSIONS string.

eglQueryString() had fixed size string buffer as a place holder
for EGL_EXTENSIONS to avoid dynamic memory allocation. However,
this caused an issue when the backend eglQueryString() returned
the longer string that is more than this fixed size string buffer.

We now allocate the string buffer dynamically.