Fix compiler warnings

Do not definee NETWORK_ENABLE_LOGGING if already defined