fixed many warnings when compiling
added ncurses as static library to allow building
libreadline as shared library