Fix libperl

https://www.illumos.org/issues/4190