Bison 3 fixes

These patches make syslog-ng compile nicely with bison >= 3.0.