Compile network-related code conditionally.