Hide some class destructors from SWIG.

To prevent C++ objects from being destroyed in garbage collected languages
(like Java and Python) when the libraries are called from SWIG, we hide the
declarations of the destructors so SWIG code won't wrap them.