Replaced custom command calls with bison/flex macros from FindFlex package.
Enable out of source build.