fix #38; avoid warnings introduced in perl 5.21.x