When searching for readline, ncurses is needed, which can be ncursesw or ncurses. Use pkgconfig to avoid the whole situation and simplify. Also add readline/host as the OS one may be unusable. Signed-off-by: Rosen Penev <rosenp@gmail.com>