fix swig compile problem