attempt to better build on non-share-library configs