when using generated swig code in a extra package it is
often desireable to export the symbols with functions
and structure(member) names defined. the patch does
this if the feature "export" is set.
i hacked this together from looking 10min at the swig
code,hope its not too bad.