FreeBSD adjustments - thx bab