add -nomodern to swig to allow pointer assignment to globals