Adapt to older network library version