improve packaging for libraries