Enable IPv6, fix systemd PID bug, prevent realloc with sizeof 0