build nw and mac