fix perl build failures