change some codes and compile on the linux of libnetwork