egl: add new platform functions (v2)