Use a single "inreplace", try without --with-ncurses

Adamv pointed out that inreplace can handle multiple files.

Also, once we change the configure script, it should be able to find
ncurses even without us calling it explicitly with --with-ncurses.