Fixed compilation errors and failing item validation unit-tests for Perl 5.6.2