Fix issue with texture state tracking when CC3Texture deallocated.

Fix issue with texture state tracking when CC3Texture deallocated.
Update demo project settings to match Xcode 5.1.