fix static build script