editline library requires "-ltermcap".

FreeBSD manual page says "Programs should be linked with -ledit
-ltermcap."  NetBSD manual page says the same.  OpenBSD manual
page says "Programs should be linked with -ledit -lcurses." but
I tested mirb binary linked with "-ltermcap" (without "-lcurses")
works well on OpenBSD 5.3.