add .termcap for mlterm
fix FreeBSD support