Fix shared build