Fix swprintf and std::to_string support