Build was failing because the bash invocation was not expanding the thrift-* wildcard
exchanged transport.read to transport.read_into_buffer which should be faster as it does not allocate a new ruby string each time
fixed segfault bug due to dereferencing a native C int as a ruby int