Fixed build issues surrounding automake and the use of Flex and Bison.