GlobalOpt: fix an issue where CXAAtExitFn points to a deleted function.