windows static build fixes