BUG: When a library file name is linked without a path make sure the link type is restored after the -l option.