Add .gitignore, fix compilation (at least for me), and fix https://github.com/daduang/project/issues/2