Some fix to glGetTexImage, and use wrapped Framebuffer functions
added extern to buffer functions
dynamic loading of EGL