Replace linenoise with libedit in code and build.