Tweaked STL allocator to work on iOS.