Support ENABLE_NET flag.