[PATCH] fix Berkeley db autodetection on FreeBSD