Fix building of Perl libaries for subversion.

* SWIG cannot build in parallel, so disable that.
* Move all libraries to the correct location.
* Remove filter than removes -isystem flag. This is no longer generated, and so doesn't need to be removed. This prevents warnings from being shown subversion --perl is built.
* Depend on swig if we try to compile the ruby bindings.

Closes #23829.

Signed-off-by: Xiyue Deng <manphiz@gmail.com>