Fix issue 3645: OpenBSD required -lcurses when linking with readline
to get the correct completion_matches function to avoid crashes on
I don't have OpenBSD to test myself. I tested that it does not break
anything on linux. It is simple.
Gregory P. Smith