Fix symlinks creation when re-compiling to existing object file.