Misc bugs fixed in link library and lsflink, debug outputs disabled