egl: move alloc & init out of _eglBuiltInDriver{DRI2,Haiku}