Updated build script to include Thrift