Gentoo fixes

Hello,

I'm updating the Gentoo Linux ebuild of nagios-plugins, and these patches are something we're applying that should be useful to be upstreamed.

HTH,
Diego