Add config arguments to ncurses and readline

This fixes python-readline failure.