Restructured the compilation such that the resulting code files of bison and flex are put into the build directory since they may be different on different platforms.