C++98 compatibility: Use throw() in destructor of std exceptions.