Add function copy_network_params used by standard network configuration

Required by new os/network/config in template-library-standard

Also includes an improved version of get_num_of_cores() (unrelated change but part of an improvement of standard functions)