Fixes for ES 3.0 strongly-typed enums

Fixed parameter mismatches in CopyBufferSubData and BlendFuncSeparate.
Implemented KHR_debug extension.