Erlang library from the thrift project