try to deal with some global variables being treated as duplicate symbols when compiling with clang

there are still more