adding some #ifdef SWIG conditionals