fix builds on perl <=5.12