Seems newSV_type() isn't available before Perl 5.8.9. Fixed.