Make build auto config specify ncurses libs in a separate variable