Fix compilation issues with recent libnet