fix static build on linux.