Fix component=shared_library build.

GetPlatformDefaultEGLNativeDisplay() is not expoted, but we could use
GLSurfaceEGL::GetNativeDisplay() to access the native display. This
also fixes the shared build.