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.
Rebase 0006-Temporarily-remove-ozone-dependency-for-gl for M36.