Perl-compat fix

Hi Philippe,

this fixes the module with recent Perls. As I said on Jabber, I can make a release if you want me to. Just let me know.

Update: I just made a dev release to CPAN. Feel free to pull and promote it to stable.

--Steffen