Fixed the depreciation warnings that Perl >5.16 was generating.