Fixed local variable declaration
Rename EGL getErrorString function (causes duplicate definition in unity builds)
Reduce stack buffer for error message, null terminate in case of overflow