Modified read_thrift_from_file() to use TBinaryProtocol if TCompactProtocol does not work