add .gitignore and fix curses compilation problem