299: fix for doing a shared build