ipv6: move csum_ipv6_magic() and udp6_csum_init() into static library