configure.ac: Use ExtUtils::Embed to detect libperl

Reported-by: Peter Czanik <czanik@balabit.hu>
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>