add swig compile && other adjustment