Update for Xcode 5.1 compatibility.

Remove arm64 support from libraries, demo projects & templates.
Update several missing integer casts.
Fix memory leak in CC3ModelSampleFactory factory.