turned "genlib" in to a shared-source library