Fixing gcc error.
Adding SWIG support.