made failures retry during reduce, made linenoise optional to allow compilation with emscripten