Build shared lib