scons: rework the EGL build