Fix obj-c library to match C api changes