Some hacks to allow using EGL directly on a flame/b2g device.