libagl: add support for GL_BGRA of glReadPixels

The screencap will use BGRA for our overlay buffer. this patch add
the support for screencap to read the BGRA data.

Signed-off-by: Royce Jiang <jiangxd@embedinfo.com>