added APIs for exporting class member functions to pin runtime