Fix compatibility with perl v5.8