Remove some unless code. Fix #ifdef problem for older FreeBSD.

This change fixes a compile problem reported by nox@ on non -current.