Allow builds with shared port disabled

Not that disabling shared ports during the build is necessarily a good
idea, but at least it builds now.  This should impact no one, since we
always build shared port support.