Added a cabal flag old-network-uri, when enabled it uses Network.URI module from network package. otherwise network-uri package.