restore ZTVN10 hacks, but only for non-ta2 where we do not link in libcxxabi