adapt to incompatible changes in bison 3.0