fixed up shared lib building