Revert THRIFT-1453 (Thrift C extension changes)

These were resulting in corruption of TFramedTransport's wBuf_
and modifications to Thrift method arguments
Apply fix for THRIFT-1903 to enable C extension usage

In addition to fixing the basic problem (caused by namespace changes),
this makes a minor optimization around detecting if the extension
is enabled.