make compatible with perl < 5.14