added extensions, made ncurses optional, misc