hand-hacked swig bindings to run without warnings