Added better debug handling when unable to link stubs in reference linker