build shared lib and allow to install it