This MR adds support to creating ES and ES2 context with OSMesa. Useful when testing that everything works despite the differences of API.