Fixes for use with the AMD EGL/GLES SDK.