fixed bugs in yacc file

see https://github.com/sixman9/mosyncUbuntuBuild