Fix Xcode 5 value and format conversion warning when building for device
Merge fix-xcode5-conversion-warnings