fix compilation for older perls