Add support for extension module destructors.