Add configure and commandline option to switch between IPv4 and IPv6