Resolving two issues on NetBSD

This module hasn't been build-able from CPAN on NetBSD for years.

The upstreamed patch from pkgsrc resolves the issue.

Many thanks.