Add support for handling c++ thunks