add static build support.