Update Xcode project file to v600, disable external C compatibility warnings and enable link-time optimization.
Initialize arrays to zero values to avoid accessing uninitialized values.
Initialized variables to 0.0f to avoid a potential access to uninitialized variables.
Guard against a division by zero.