fix for building in Xcode5

borrowed from:
https://github.com/mgamer/JSONKit/blob/693c18c4810bca438f8cb56de90e40c996cc0f17/JSONKit.m