[lib/objc] macros to define classes accessible from obj-c