examples: Fix building samplesshd-tty on FreeBSD.