partial fix of a static build