Added some helper macros for native interoping. (not used, still WIP).