THRIFT-2100 typedefs are not correctly referenced when including from other thrift files

Patch: Remo Hertig