Change .gitignore.
Fix compile errors.