fix objc failure in static build