fix the libreadline->ncurses dep to be backward-compatible

Signed-off-by: Fotis Georgatos <fotis.georgatos@uni.lu>