fix swig dependency generation