(agp+gles) platform fixes and workaround for videocore

Still have strong problems allocating proper FBOs
with DEPTH+STENCIL. Added a workaround that switches
to a simpler format when that fails. This will break
3D- based paths and paths that rely on stencil buffer
for clipping (rotated objects etc.) but can atleast
provide some means of workable graphics.