Add .gitignore file
Fix compiler and runtime warnings for iOS 6