extras: tools: Patch libtool to force -lpthread when using -nostdlib
This MR adds a patch to libtool to ensure we pass -lpthread to the linker when needed.
When using pthread with gcc/clang, -pthread should be enough when passed as C(XX)FLAGS and LDFLAGS, however since libtool will insert -nostdlib the compiler won't infer the -lpthread, causing the link to fail.
This is linked to: