Fix libperl

https://www.illumos.org/issues/4190
Merge pull request #294 from pyhalov/perl

Fix libperl