egl: Add needed extern "C" for C++ access