Fixed LD bug when library not found.