fix Makefile.am and add .gitignore