Find Network.URI in either of network < 2.6 or network-uri >= 2.6.

Fix nfjinjing/hack2-contrib#1.