strnvis fixes for freebsd, taken from openssh
add header, fixes freebsd compile