Fixed build issues with current XCode iOS Dev Kit

Made odatagen build on current XCode, some code cleanup. The samples build again, but most are still broken. Added files to gitignore.