fix builds of SWIG wrappers