Fix compilation errors, add thrift-generated srcs