Fixed SWIG C++ vector compilation issue.