metasm_prepare: fix building vfunctions