Fix the NOINET and NOINET6 builds.

MFC after:3 days