Fix building on iOS 5, OS 10.8.

* NSMapTable is not available.
* An NSMutableDictionary initializer apparently changed between iOS 5 SDK and
  beyond.