add static ans shared lib build