fix SCons fullstatic build with glibc pthreads