fix warnings on newer perls