Support for framebuffer glesv2 flavor

Tested with mali400 framebuffer drivers and also libhybris. This
is based on native-state-x11.cpp/native-state-x11.h sources (mostly
just chopped off everything x11 related).