TINYGL: Fix coverity and compile warning

- change void* to byte*, otherwise delete[] is undefined
EMI/GRIM: Fix compile warning

- the pixel data retrieved via getPixels() is stored as non-const
data in pixebuffer, so the original object can't be const