Ported for compilation under Ubuntu 14+ and bison 3+