Refix static build