Depend on swig if we try to compile the ruby bindings.