Build into shared lib instead of static lib