clang/error: fix: non-type template argument refers to function ExportThunk that does not have linkage