Add linenoise and enhance Makefile