using linker -defsym instead of alias/weakref due to poor compatibility.