libedit: add FreeBSD support