install thrift and define a task to compile *.thrift files