USERGRID-2401: compatibility fixes for Xcode 4.x
USERGRID-2401: compatibility fixes for Xcode 4.x