configure: check for libperl.so, and do not try to build perl module if not present.

Most ancient and modern Unices have perl interpreter installed, but not all of them have
libperl.so installed by default.
Merge pull request #41 from talien/f/perl-configure-fix

configure: check for libperl.so, and do not try to build perl module if ...