fix shared build failure