Swing: make the Perl dependency only optional