Fix libperl falsely undetected in configure.ac