squash a pair of nits, and XXX where some improvement is necessary
for Defect.pm:

+use strict;
+use warnings;

noticed by perlcritic