Fix warnings in Perl 5.18.1