Fall back to IPv4 if IPv6 fails

Conflicts:
	src/bitcoinrpc.cpp
	src/checkpoints.cpp