Added .gitignore, fixed compilation