Add missing parens.
Add missing prototypes.
Include header file for missing prototype.
Merge pull request #1 from dwmalone/master

Patches for IPv6 care for recent FreeBSD