Syntax fixes for old perl