Set libperl name in configure_libs

Allows using -Dlibperl= -Duseshrplib while retaining -Wl,soname
d_semctl_semun should be defined for linux-gnu