Ignore build files and xcuserdata
Fix compiler warnings
Merge pull request #22 from samjohn/master

Fix compiler warnings and improve the .gitignore