fix compilation on perls before 5.10