C: more #267. hv->MAGICAL is not defined with 5.6.2, check for version before