Repackage libraries to avoid undefined and dulicate symbols at link time.