Port the Linenoise to the system

*Change the function name puts and gets to putstr and getstr in order to avoid the name conflicting
*Still have some error need to be fixed