patch for FreeBSD