Fix compatibility issues with older yacc versions