make static build work