debian: Import bison3 fixes from 3.5/master

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>