Added use flags to compile network related libraries