Fix compiling with new network libraries.