THRIFT-1351 Compiler does not care about binary strings

Patch: Wade Simmons & Jens Geyer
THRIFT-1533:Make TTransport should be Closeable
Client: java
Patch: carl