set foundation and corelocation frameworks to optional
update .gitignore