Fix alb patch to install shared lib only when shared build.