Fix support for bison 2.6+. Closes #38.

Tested with bison 2.5 and 2.7.12-4996