Supports ENABLE_NET build flag.