make sure libcurses.a is linked in together with libreadline.a