removed some old lib building code