refactor to create all libraries in build/lib