THRIFT-2254 Exceptions generated by Go compiler should implement error interface

Patch: Aleksey Pesternikov
THRIFT-2227 Thrift compiler generates spurious warnings with Xlint

Patch: Andrew Gaul