libgenerate extracted from thrift executable
make check fixed - EnumTest compiles