fix static build script.