Fixed the build and added a gitignore for xcode