Make compatible with Perl 5.18

Without this patch, it is broken on Arch Linux and other distros that have upgraded to Perl 5.18.