[thrift] move generated constructor out of header, see #320