(ITS#8642) ./configure --without-thread compile failed on git master