Updated .gitignores and fixed compilation errors