Fix build of swig bindings (thanks gnutoo for reporting!)