Fix library ref

If the library name is different from the target name.