Sparse fixes

Hi!
Some fixes for nagios-plugins 2.0.1. Please apply.
Davide