fix shared build