bugfixes in linker

- stop search when the needed symbol is found
- ignore object files, from which nothing is needed