Support perl versions without XS_INTERNAL