Add c extension for object id generation