BC: fix xcv_name_hek < 5.18

skip undefined symbols < 5.18
special-case old sv_magic
adjust 5.17.x checks to 5.18