Fix the linker complaining about the lib being renamed

If the .a and .dylib files are renamed, an executable linked with the renamed file still tries to find the library using the original name,
and crashes.