Perl before 5.14 lacks croak_no_modify(); #define it
Perl before 5.14 lacks Perl_sv_del_backref(); simulate it by sv_clear(); SvRV_set()
Perl before 5.12 lacks Perl_ck_warner(); copypaste a definition from a later Perl