Make ping6 compile. With these changes, ping6 compiles and runs in the normal raw socket mode which requires root privileges. (cherry-pick of d06ff8674fa66847aadb1c96602e8cdb7450a655.) Bug: 9469682 Change-Id: Iee62f73c94e403e6f52ce0aeff583ee3952fb717