Add some safeguards against old perl