file in n patchfiles, just one per patch for better maintainance.
Make this compile on NetBSD: + __FreeBSD__ -> (defined(BSD) && BSD >= 199306) + eliminate compiler warnings by working around unusual definition in switch statement. + change the man directory location to reflect NetBSD reality.