implement libpatch_define_orig_declare family