Fixed rebuilding of SWIG bindings repeatedly.