Fix --with-curses configure option.