fix for old swig versions