use use File::Path::rmtree()

This to avoid compat issue with File::Path < 2.
Net::SNMP is required by the test suite
skip if threading is disabled
more natural code structure
no threading: do not compile associated modules
minor changes to avoid a warning with Perl 5.8

Use of uninitialized value in scalar assignment
skip if no thread
do not use “keys” on an array