support/script/scancpan: add support PREFER_STATIC_LIB

Perl extensions are loaded at runtime with dlopen(), so it does not
make sense to even build extensions that are written in C.

Perl module written in C or with a dependency on a module written in C
is not available when doing a static build.
perl-io-socket-ssl: new package
perl-gd: new package
perl-gdtextutil: new package
perl-gdgraph: new package
perl-curses: new package
perl-io-socket-ip: new package