fix: pthreads must be the last lib (on some systems)
fix: resetting already collected libs