install basic dependencies, see http://thrift.apache.org/docs/install/ubuntu