Fixed ncurses again to support linux