Fix a compile error in the SWIG bindings.