A compiler for secure multiparty computation