Fix stuck issue when using TUI, frequency sanity fix.
Updated configure/Makefile with ncurses/pdcurses