fix warnings in newer perls