Fix dependencies for network >= 2.6.1

Hope I got this right.