Add libs for buildroot threads