rename libs correctly as soon as they're copied