updated build for generic library